<?php $this->headScript()->appendFile($this->JS_PATH . 'contractor.js'); ?>

<div id="contractor-listing"></div>
<div id="pad-wrapper" class="form-page">
        <div class="row-fluid form-wrapper">
            <div class="span column">
                <?php if ($this->successmessage != ''): ?>
                    <div class="alert alert-success">
                        <i class="icon-ok-sign"></i> <?php echo $this->successmessage; ?>
                    </div>
                <?php endif; ?>
               <?php if (count($this->errorMessageArray) > 0): ?>
                    <div class="alert alert-error">
                        <?php foreach ($this->errorMessageArray as $erroValue): ?>
                            
                                <div class="text-left">
                                    <i class="icon-remove-sign"></i>
                                    <?php echo $erroValue; ?>
                                </div>
                            
                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                <h3><?php echo $this->mode;?> <?php echo $this->translate("contractor_header"); ?></h3>
                <br />
                <form role="form" class="form-horizontal" id="contractor-form" name="contractor-form"  enctype="multipart/form-data"  action="" method="post">
                    
                    <div class="field-box">
                            <label><?php echo $this->translate("contractor_frm_title"); ?>:</label>
                            <div class="ui-select">
                                <?php echo $this->form->cont_title; ?>
                            </div>
                     </div>
                    
                    <div class="field-box">
                            <label><?php echo $this->translate("contractor_frm_firstname"); ?><span class="error-star">*</span>:</label>
                           <?php echo $this->form->cont_firstname; ?>
                     </div>

                    <div class="field-box">
                            <label><?php echo $this->translate("contractor_frm_lastname"); ?><span class="error-star">*</span>:</label>
                           <?php echo $this->form->cont_lastname; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_image"); ?>:</label>
                        <?php 
                        if ($this->imageName != ""): ?>
                        <?php if(file_exists($this->UPLOAD_PATH."contractor/" . $this->imageName)):?> 
                        <?php 
                                $src_path = $this->PUBLIC_PATH . "upload/contractor/".$this->imageName; 
                        ?>
                        <img src="<?php echo $src_path; ?>" height="200" width="200"/>&nbsp;
                        <br>
                            <?php endif; ?>
                            <?php endif; ?>
                        <input type="file" name="cont_image" id="cont_image">  
                   
                    </div>
                    <div style="clear: both"></div>
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_phone"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->cont_phone; ?>
                    </div>
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_mobile"); ?></label>
                        <?php echo $this->form->cont_mobile_no; ?>
                    </div>
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_email"); ?><span class="error-star">*</span>:</label>
                        
                        <?php 
                        echo $this->form->lgn_email;
                        ?>
                    </div>
                    
                     <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_password"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->lgn_password; ?>
                    </div>
                    
                    
                     <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_conf_password"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->lgn_confirmpassword; ?>
                    </div>
                    
		    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_company"); ?><span class="error-star">*</span>:</label>
                            <?php echo $this->form->com_id; ?>
                    </div>
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_department"); ?><span class="error-star">*</span>:</label>
                             <?php echo $this->form->dep_id; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_address"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->cont_address; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_city"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->cont_city; ?>
                    </div>
            
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_state"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->cont_state; ?>
                    </div>
            
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_country"); ?><span class="error-star">*</span>:</label>
                        
                            <?php echo $this->form->cont_country; ?>
                       
                    </div>
            
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_zipcode"); ?>:</label>
                        <?php echo $this->form->cont_zipcode; ?>
                    </div>
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_quality"); ?><span class="error-star">*</span>:</label>
                        <div class="ui-select">
                            <?php echo $this->form->cont_quality; ?>
                        </div>
                    </div>
                
                
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_security_ques"); ?><span class="error-star">*</span>:</label>
                            <?php echo $this->form->cont_securityquestion; ?>
                    </div>
                
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_security_ans"); ?><span class="error-star">*</span>:</label>
                            <?php echo $this->form->cont_securityanswer; ?>
                    </div>
                   
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_availability"); ?><span class="error-star">*</span>:</label>
                        <div class="ui-select">
                            <?php echo $this->form->cont_availability; ?>
                        </div>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("frm_language"); ?><span class="error-star">*</span>:</label>
                            <?php echo $this->form->lang_id; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("contractor_frm_status"); ?><span class="error-star">*</span>:</label>
                        <div class="ui-select">
                            <?php echo $this->form->cont_status; ?>
                        </div> 
                    </div>
                        
                    <br>
            
                    <div class="field-box">
                            <?php echo $this->form->Save; ?>
                        <?php echo $this->form->Reset; ?> 
                    </div>
	        </form>
            </div>
        </div>
    </div>


